package com.nidu.demo.tenant.convertor;

import com.nidu.demo.base.BaseConvertor;
import com.nidu.demo.tenant.dto.TenantPackageCO;
import com.nidu.demo.tenant.mapper.dataobject.TenantPackageDO;
import com.nidu.demo.tenant.model.TenantPackage;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface TenantPackageConvertor extends BaseConvertor<TenantPackageDO, TenantPackage, TenantPackageCO> {

    @Override
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "createBy", ignore = true)
    @Mapping(target = "updateBy", ignore = true)
    TenantPackageDO toDataObject(TenantPackage tenantPackage);
}